import TableExtend from "@/components/table-extend";
export default {
  data() {
    return {
      record: {},
      data: [],
      modalTitle: '',
      modalStatus: false,
      modalLoading: true,
      loading: false,
      total: 0,
      queryParams: {
        pageNo: 1,
        pageSize: 10
      },
      tableSize: 'default'
    }
  },
  components: {
    TableExtend
  },
  methods: {
    // 查询
    handleQuery() {
      this.queryParams.pageNo = 1;
      this.getList();
    },
    resetQuery(e) {
      this.queryParams = {
        pageNo: 1,
        pageSize: 10
      };
      this.handleQuery();
    },
    // 调整页码
    changePage(page) {
      this.queryParams.pageNo = page;
      this.getList();
    },
    // 修改每页展示数量
    changepageSize(size) {
        this.queryParams.pageSize = size;
        this.getList();
    },
    // 提示框
    modalConfirm(text, callback) {
        this.$Modal.confirm({
            title: "提示",
            content: text,
            onOk: () => {
                callback();
            }
        });
    }
  }
}